import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class CDTextTheme {
  static const String fontFamily = "PingFang SC";
  static TextTheme textTheme = TextTheme(
    // ----- Display Styles (大标题，用于屏保或非常重要的标题) -----
    displayLarge: TextStyle(
      fontSize: 24.r,
      fontWeight: FontWeight.w600,
      fontFamily: fontFamily,
    ),

    // ----- Headline Styles (标题，用于页面或区块标题) -----
    headlineLarge: TextStyle(
      fontSize: 16.r,
      fontWeight: FontWeight.w600,
      fontFamily: fontFamily,
    ),
    headlineMedium: TextStyle(
      fontSize: 16.r,
      fontWeight: FontWeight.w400,
      fontFamily: fontFamily,
    ),

    // ----- Title Styles (副标题，比 Headline 小一级) -----
    // 本项目用在了帖子标题等
    titleLarge: TextStyle(
      fontSize: 18.r,
      fontWeight: FontWeight.w600,
      fontFamily: fontFamily,
    ),

    // ----- Body Styles (正文) -----
    bodyLarge: TextStyle(
      fontSize: 14.r,
      fontWeight: FontWeight.w600,
      fontFamily: fontFamily,
    ),
    bodyMedium: TextStyle(
      fontSize: 14.r,
      fontWeight: FontWeight.w400,
      fontFamily: fontFamily,
    ),
    bodySmall: TextStyle(
      fontSize: 12.r,
      fontWeight: FontWeight.w400,
      fontFamily: fontFamily,
    ),

    // ----- Label Styles (按钮文字、标签等) -----
    labelLarge: TextStyle(
      fontSize: 16.r,
      fontWeight: FontWeight.w500,
      fontFamily: fontFamily,
    ),
    labelMedium: TextStyle(
      fontSize: 14.r,
      fontWeight: FontWeight.w500,
      fontFamily: fontFamily,
    ),
    labelSmall: TextStyle(
      fontSize: 12.r,
      fontWeight: FontWeight.w400,
      fontFamily: fontFamily,
    ),
  );
}
